<!DOCTYPE html>
<meta charset="utf-8">
<style>
html {
  writing-mode:vertical-rl;
}
.tcy {
  text-combine-upright:all;
}
div {
  font-family:Ahem;
  font-size:20px;
  line-height:1;
}
</style>
<div><span class="tcy">平成</span>　　あ　　あ<br>WWWWW</div>
<div>あ　　あ　　<span class="tcy">平成</span><br>WWWWW</div>
<div>あ　　<span class="tcy">平成</span>　　あ<br>WWWWW</div>
<div>W　　<span class="tcy">平成</span>　　あ<br>WWWWW</div>
<div>あ　　<span class="tcy">平成</span>　　W<br>WWWWW</div>
<div>W　　<span class="tcy">平成</span>　　W<br>WWWWW</div>
